<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="utf-8">
	<title>RectAreaLightUniformsLib - Three.js Docs</title>
	<meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
	<script src="../scripts/highlight.min.js"></script>
	<link type="text/css" rel="stylesheet" href="../styles/highlight-three.css">
	<link type="text/css" rel="stylesheet" href="../styles/page.css">
</head>
<body>
	<h1 translate="no">RectAreaLightUniformsLib</h1>
		<section>
			<header>
				<div class="class-description"><p>This class is only relevant when using <a href="RectAreaLight.html">RectAreaLight</a> with <a href="WebGLRenderer.html">WebGLRenderer</a>.</p>
<p>Before rect area lights can be used, the internal uniform library of the renderer must be
enhanced with the following code.</p></div>
				<h2>Code Example</h2>
				<div translate="no"><pre><code class="language-js">RectAreaLightUniformsLib.init();
</code></pre></div>
			</header>
			<article>
				<h2 class="subsection-title">Import</h2>
				<p><span translate="no">RectAreaLightUniformsLib</span> is an addon, and must be imported explicitly, see <a href="https://threejs.org/manual/#en/installation" target="_blank" rel="noopener">Installation#Addons</a>.</p>
				<pre><code class="language-js">import { RectAreaLightUniformsLib } from 'three/addons/lights/RectAreaLightUniformsLib.js';</code></pre>
				<div class="container-overview">
					<div class="method">
					</div>
				</div>
				<h2 class="subsection-title">Static Methods</h2>
					<h3 class="name name-method" id=".init" translate="no">.<a href="#.init">init</a><span class="signature">()</span> </h3>
					<div class="method">
						<div class="description">
							<p>Inits the uniform library required when using rect area lights.</p>
						</div>
					</div>
				<h2 class="subsection-title">Source</h2>
				<p>
					<a href="https://github.com/mrdoob/three.js/blob/master/examples/jsm/lights/RectAreaLightUniformsLib.js" translate="no" target="_blank" rel="noopener">examples/jsm/lights/RectAreaLightUniformsLib.js</a>
				</p>
			</article>
		</section>
<script src="../scripts/linenumber.js"></script>
<script src="../scripts/page.js"></script>
</body>
</html>